using System;
using Castle.ActiveRecord;

namespace Cooking.Core.Model
{
    [ActiveRecord]
    public class Ingredient
    {
        [PrimaryKey(PrimaryKeyType.Identity)]
        public int Id { get; set; }

        [Property]
        public string Name { get; set; }

        public Ingredient(string name)
        {
            Name = name;
        }

        public Ingredient(){}
    }
}